// hookapiTest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "ProcessItem.h"

BOOL DelNtDll(MODULEENTRY32W* pModuleEntry32w);

BOOL DelNtDll(MODULEENTRY32W* pModuleEntry32w)
{
    BOOL bRet = TRUE;
    
    if (pModuleEntry32w)
    {
        if (_tcsicmp(pModuleEntry32w->szModule, _T("ntdll.dll")) == 0)
        {
            bRet = FALSE;
        }
    }

    return bRet;
}

int _tmain(int argc, _TCHAR* argv[])
{
    CProcessItem processItem;
    processItem.AddFilter(DelNtDll);
    processItem.GetModuleSnapshot(::GetCurrentProcessId());
	return 0;
}

